package com.ymm.system.api.utils;

/**
 * 订单
 *
 * @author guorui
 */
public enum OrderStatusEnum {
    /**
     * 进行中
     */
    ONGOING(0, "进行中"),
    /**
     * 已完成
     */
    COMPLETED(1, "已完成"),
    /**
     * 已取消
     */
    CANCELLED(2, "已取消");

    private Integer code;
    private String message;

    OrderStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String toString() {
        return "OrderStatusEnum{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
